@list-max-height: 160px;
@list-width: 160px;
@arrow-size: 18px;
@border: 1px solid rgba(120, 120, 120, 0.4);

.list-wrap {
  background-color: #fff;
  border-radius: 10px;
  border: @border;
  box-shadow: 0 4px 18px 0px rgba(0, 0, 0, 0.3);
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  max-height: @list-max-height;
  padding: 4px;
  position: fixed;
  transform: translate(calc(-50% + 0.5em), -30px);
  transition: opacity 0.01s ease;
  width: @list-width;
  z-index: 999;

  .arrow {
    bottom: -@arrow-size;
    height: @arrow-size;
    left: (@list-width / 2 - @arrow-size);
    overflow: hidden;
    position: absolute;
    width: (@arrow-size + 10px);
    &::after {
      background-color: #e4e6e7;
      border: @border;
      content: '';
      display: block;
      height: @arrow-size;
      left: 5px;
      position: absolute;
      top: -50%;
      transform-origin: center center;
      transform: rotate(45deg);
      width: @arrow-size;
    }
  }

  & > div {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    &::-webkit-scrollbar {
      display: none;
    }
  }
}

.tag {
  color: #1890ff;
}
